<?php

class NSmartyEngine {
	var $engine;
function __construct($args){
$smarty_path=realpath(dirname(__FILE__)."/../../../smarty/libs/Smarty.class.php");
require_once($smarty_path);
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->caching = false;
if ($args['compile_dir'])
$smarty->compile_dir=$args['compile_dir'];
if ($args['template_dir'])
$smarty->template_dir=$args['template_dir'];
if (isset($args['plugins_dir']))
$smarty->plugins_dir=$args['plugins_dir'];
if ($args['right_delimiter']) 
$smarty->right_delimiter=$args['right_delimiter'];
if ($args['left_delimiter']) 
$smarty->left_delimiter=$args['left_delimiter'];


$this->engine=$smarty;
}
}

?>